package com.mzw.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mzw.mzwcommon.model.entity.UserInterfaceInfo;
import com.mzw.project.common.BaseResponse;

import javax.servlet.http.HttpServletResponse;

/**
 * @author L1nAn
 */
public interface UserInterfaceInfoService  extends IService<UserInterfaceInfo> {
    void validUserInterfaceInfo(UserInterfaceInfo userInterfaceInfo, boolean add);

    /**
     * 调用接口统计
     * @param interfaceInfoId
     * @param userId
     * @return
     */

    boolean invokeCount(long interfaceInfoId, long userId);

    /**
     * 增加接口免费调用次数
     * @param interfaceInfoId
     * @param userId
     * @param voucherId
     * @return
     */
    boolean saveFreeLeftNums(long interfaceInfoId, long userId, long voucherId);
}
